import ServiceBase from 'ServiceBase'

class Service extends ServiceBase {
	constructor() {
		super()
		this.$$prefix = ''
		this.$$path = {
			signIn      : '/index.php/api/User/login',
			showDetail  : '/index.php/api/User/getShowDetail',
			getClassify	: '/index.php/api/Classify/getClassify',
			delOrder	: '/index.php/api/Order/delThis',
			getOrderlist: '/index.php/api/Order/getUserList',
			getPhotoBox	: '/index.php/api/Order/getPhotoBox',
			addRess		: '/index.php/api/User/addRess',
			getUserResslist : '/index.php/api/User/getUserResslist',
			editUserRessCode: '/index.php/api/User/editUserRessCode',
			editUserRess	: '/index.php/api/User/editUserRess',
			getUserAddRessInfo : '/index.php/api/User/getUserAddRessInfo',
			deletUserAddRessInfo:'/index.php/api/User/deletUserAddRessInfo',
			getSelectAddRessInfo:'/index.php/api/user/getSelectAddRessInfo',
			addOrderInfo		: '/index.php/api/Orders/addOrderInfo',
			getOrdersList	:	'/index.php/api/Orders/getOrdersList',
			getOrdersData	:	'/index.php/api/Orders/getOrdersData',
			getOrdersInfo	:	'/index.php/api/Orders/getOrdersInfo',
			removeOrders	:	'/index.php/api/Orders/removeOrders',
			confirmTake		:	'/index.php/api/Orders/confirmTake',
			getShowOrder	:	'/index.php/api/Order/getShowOrder',
			getUserOpenid	:	'/index.php/api/WxPay/getUserOpenid',
			editOrderStatus :	'/index.php/api/Orders/editOrderStatus',
			getPleaseOrder	: '/index.php/api/Orders/getPleaseOrder',
			applyRefund		: '/index.php/api/Orders/applyRefund',
			getProductList	: '/index.php/api/User/getProductList',
        }
	}

	wechatSignUp(params) {
		return this.postRequest(this.$$path.wechatSignUp, params)
	}

	wechatSignIn(params) {
		return this.postRequest(this.$$path.wechatSignIn, params)
	}
	
	signIn(params) {
		return this.postRequest(this.$$path.signIn, params) 
	}

	showDetail(params){
		return this.postRequest(this.$$path.showDetail,params)
	}
	getClassify(params){
		return this.postRequest(this.$$path.getClassify,params)
	}
	delOrder(params){
		return this.postRequest(this.$$path.delOrder,params)
	}
	getOrderlist(params){
		return this.postRequest(this.$$path.getOrderlist,params)
	}
	getPhotoBox(){
		return this.postRequest(this.$$path.getPhotoBox)
	}
	addRess(params){
		return this.postRequest(this.$$path.addRess,params)
	}
	getUserResslist(params){
		return this.postRequest(this.$$path.getUserResslist,params)
	}
	editUserRessCode(params){
		return this.postRequest(this.$$path.editUserRessCode,params)
	}
	editUserRess(params){
		return this.postRequest(this.$$path.editUserRess,params)
	}
	getUserAddRessInfo(params){
		return this.postRequest(this.$$path.getUserAddRessInfo,params)
	}
	deletUserAddRessInfo(params){
		return this.postRequest(this.$$path.deletUserAddRessInfo,params)
	}
	getSelectAddRessInfo(params){
		return this.postRequest(this.$$path.getSelectAddRessInfo,params)
	}
	addOrderInfo(params){
		return this.postRequest(this.$$path.addOrderInfo,params)
	}
	getOrdersList(params){
		return this.postRequest(this.$$path.getOrdersList,params)
	}
	getOrdersData(params){
		return this.postRequest(this.$$path.getOrdersData,params)
	}
	getOrdersInfo(params){
		return this.postRequest(this.$$path.getOrdersInfo,params)
	}
	removeOrders(params){
		return this.postRequest(this.$$path.removeOrders,params)
	}
	confirmTake(params){
		return this.postRequest(this.$$path.confirmTake,params)
	}
	getShowOrder(params){
		return this.postRequest(this.$$path.getShowOrder,params)
	}
	getUserOpenid(params){
		return this.postRequest(this.$$path.getUserOpenid,params)
	}
	editOrderStatus(params){
		return this.postRequest(this.$$path.editOrderStatus,params)
	}
	getPleaseOrder(params){
		return this.postRequest(this.$$path.getPleaseOrder,params)
	}
	applyRefund(params){
		return this.postRequest(this.$$path.applyRefund,params)
	}
	getProductList(params){
		return this.postRequest(this.$$path.getProductList,params)
	}
}

export default Service